import { LAYOUT } from '/@/router/constant'
import type { AppRouteModule } from '/@/router/types'

const environment: AppRouteModule = {
  path: '/module',
  name: 'module',
  component: LAYOUT,
  redirect: '/module/index',
  meta: {
    orderNo: 90000,
    hideChildrenInMenu: true,
    icon: 'ion:grid-outline',
    title: '环境',
  },
  children: [
    {
      path: 'index',
      name: 'index',
      component: () => import('/@/views/environment/index.vue'),
      meta: {
        title: 'Octopus',
        icon: 'whh:paintroll',
        hideMenu: true,
      },
    },
    {
      path: '/module/:name',
      name: 'moduleName',
      component: () => import('/@/views/environment/module/ModuleLayout.vue'),
      meta: {
        title: 'Octopus',
        icon: 'whh:paintroll',
        hideMenu: true,
      },
    },
  ],
}

export default environment
